package com.wali.modules.usr.vo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.vo
 * @Description 发件人信息VO类
 * @email wali.xu@kpmg.com
 * @date 19/01/2019 2:14 下午
 */
public class UsrSenderVO implements Serializable {

    /**
     * 主键
     */
    private int id;

    /**
     * 用户ID
     */
    private int userId;

    /**
     * 仓库名称
     */
    private String name;

    /**
     * 电话
     */
    private String telphone;

    /**
     * 地址
     */
    private String addr;

    /**
     * 邮编
     */
    private String postcode;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 更新时间
     */
    private String updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UsrSenderVO that = (UsrSenderVO) o;
        return id == that.id &&
                userId == that.userId &&
                Objects.equals(name, that.name) &&
                Objects.equals(telphone, that.telphone) &&
                Objects.equals(addr, that.addr) &&
                Objects.equals(postcode, that.postcode) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId, name, telphone, addr, postcode, createTime, updateTime);
    }

    @Override
    public String toString() {
        return "UsrSenderVO{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", telphone='" + telphone + '\'' +
                ", addr='" + addr + '\'' +
                ", postcode='" + postcode + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
